import math
x0,y0 = eval(input("请输入p0坐标："))
x1,y1 = eval(input("请输入p1坐标："))
x2,y2 = eval(input("请输入p2坐标："))

temp = (x1-x0)*(y2-y0)-(x2-x0)*(y1-y0)

print("p2在p0到p1的","线上" if temp==0 and ( abs(x2-x0)+abs(x2-x1) == abs(x1-x0) ) else "不在线段上")